package com.sm.chatinputlibrary;

import android.os.Parcel;
import android.os.Parcelable;

import java.io.Serializable;

/**
 * created by zhud on 2019/4/8
 */
public class ChatFunctionBean implements Parcelable {
    public int image_id;
    public int string_id;

    public ChatFunctionBean(int image_id, int string_id) {
        this.image_id = image_id;
        this.string_id = string_id;
    }

    protected ChatFunctionBean(Parcel in) {
        image_id = in.readInt();
        string_id = in.readInt();
    }

    @Override
    public void writeToParcel(Parcel dest, int flags) {
        dest.writeInt(image_id);
        dest.writeInt(string_id);
    }

    @Override
    public int describeContents() {
        return 0;
    }

    public static final Creator<ChatFunctionBean> CREATOR = new Creator<ChatFunctionBean>() {
        @Override
        public ChatFunctionBean createFromParcel(Parcel in) {
            return new ChatFunctionBean(in);
        }

        @Override
        public ChatFunctionBean[] newArray(int size) {
            return new ChatFunctionBean[size];
        }
    };
}
